<html>
    <title>Add a password for a user</title>
    <body>
        <!--Asks for the username for the mysql query-->
        <form method="post" action="<?php echo $PHP_SELF; ?>">
            User ID: <input type="text" size="12" maxlength="30" name="userid"><br />
            Password: <input type="text" size="12" maxlength="30" name="password"><br />
            <input type="submit" value="Submit" name="submit"><br />
        </form><br />
        <?php
        //Grab the username from the HTML form
        $userid = $_POST["userid"];
        $password = $_POST["password"];
        //include the mysql query file
        include("mysql.php");
        echo "";
        if ($userid == null) {
            echo "No pw entered";
        } else {
            //sends the mysql query with the user-given username
            dbinsert($userid, $password);
        }
        ?>
    </body>
</html>